import {
    Dimensions,
} from 'react-native';

//获取屏幕大小
export function getScreenSize() {
    const { width } = Dimensions.get("window");
    return Math.min(width, 540); //判断是否是 iphone Plus
}

//db数值转化
export function getPixel(num, designWidth = 375) {
    return num * getScreenSize() / designWidth;
}